﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Aquasoft.Iszr.Proxy
{
    [Obsolete("Use AifoType")]
    public static class AifoUtils
    {
        public static string GetAifoAsString(byte[] aifo)
        {
            if (aifo.Length != 17)
                throw new ArgumentException("Aifo is not Aifo.");

            return Convert.ToBase64String(aifo);
        }

        public static byte[] GetAifoAsBytes(string aifo)
        {
            return Convert.FromBase64String(aifo);
        }
    }
}
